import request from '../utils/request'
import type {MypageData,ReLogin} from '@/types/mypage'

export const getMypageData = ()=>{
    return request<MypageData>({
        url:'user/info',
        method:'GET'
    })
}
export const getLogin = (data:{loginname:string;password:string})=>{
    return request<string>({
        url:'user/login',
        method:'POST',
        data
    })
}